<html>
<head>
	<title>Jar Instructions</title>
</head>

<body>
	<font face="Times">
	<p>
		<h1><big><center>jar Files</center></big></h1>
	</p>
	<br>
	<p>
		<font color="brown" size="5">REQUIREMENTS FOR CREATING YOUR JAR</font><br>
		When you are ready to submit your program, you will need to create a jar archive. The jar archive program is located in the bin directory of your JDK installation. If you have your system path set to compile and execute Java code from the command prompt, you should also be able to use jar. To create a jar archive complete the following steps: (NOTE: The exam environment has the path set)
		<ol>
			<li>Open a DOS window (command prompt)</li>
			<li>Navigate to the location of your exam folder (this is most likely <b>C:\Documents and Settings\testing\Desktop</b>)</li>
			<li>Create the jar file by typing<br>
				<b><big>jar   cvfM    jar_file_name.jar    directory_to_jar</big></b></li>
		</ol>
	</p>
	<br>
	<p>
	<h2><b><i><u>Example:</u></b></i></h2>
		I am ready to submit 
		<br>
		On my computer there is a directory <b>ObamaBarack</b> that contains all my files that I just worked on.
		<br>
		After opening the command prompt and navigating to the location where the <b>ObamaBarack</b> directory is located, type:
		<br>
		<b>jar  cvfM  ObamaBarack.jar  ObamaBarack</b>
		<br>
		This will create the jar file named <b>ObamaBarack.jar</b>. That jar file will contain the directory <b>ObamaBarack</b> as well as all the files that were located within the directory <b>ObamaBarack</b>.
	</p>
	<br>
	<p>
		<font color="brown" size="5">DESCRIPTION</font><br>
		The <b>jar</b> (Java Archive) tool is a platform-independent file format application that combines multiple files into a single JAR archive file. <b>jar</b> is a general-purpose archiving and compression tool.
	</p>
	<br>
	<p>
		<font color="brown" size="5">SYNOPSIS</font><br>
		<b>jar</b> [ options ] destination input-file(s)
	</p>
	<br>
	<p>
		<font color="brown" size="5">OPTIONS</font><br>
		<dl>
			<dt><b>c</b></dt>
				<dd>Creates a new or empty archive on the standard output.</dd>
			<br><br>
			<dt>x <i>file</i></dt>
				<dd>Extracts all files, or just the named files, from standard input. If file is omitted, then all files are extracted; otherwise, only the specified file or files are extracted.</dd>
			<br><br>
			<dt><b>v</b></dt>
				<dd>Generates verbose output on stderr</dd>
			<br><br>
			<dt><b>f</b></dt>
				<dd>The second argument specifies a jar file to process. In the case of creation, this refers to the name of the jar file to be created (instead of on stdout). For table or xtract, the second argument identifies the jar file to be listed or extracted.</dd>
			<br><br>
			<dt><b>M</b></dt>
				<dd>Do not create a manifest file for the entries</dd>
		</dl> 

	</p>
	<br>

	
	
	</font>
</body>
</html>
